﻿@model CondicionCursoVista
@{
    ViewBag.Title = "Instituciones";
    Layout = "~/Views/Shared/_MasterSGC.cshtml";
}
@section Scripts{
    @Content.Script("CbaGob.Alumnos.CondicionesCurso.js", Url)
}
@{var result = Html.Action("IsAdminMode", "Home");
  string rol = result.ToHtmlString();   }
<div class="box">
    <h2>
        Curso</h2>
    <table align="center" style="width: 700px;">
        <tr>
            <td class="style1" style="font-weight: bold">
                <div id="titulo">
                </div>
                @using (Html.BeginForm("CambairEstadoCurso", "CondicionesCurso", FormMethod.Post, null))
                { 
                    @Html.HiddenFor(c => c.Accion)
                    @Html.HiddenFor(c => c.IdCondicionCurso)
                    @Html.HiddenFor(c => c.IdInstitucion)
                    <fieldset style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; width: 700px;">
                        <legend style="color: #FF9900">Datos del Curso </legend>
                        <table align="left" class="mybusqueda" style="font-family: Arial, Helvetica, sans-serif;
                            font-size: 12px; width: 700px;">
                            <tr>
                                <td align="left">
                                    Nombre de la Institución:
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.NombeInstitucion, new { style = "width:200px;", MaxLength = "50", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    Cátalo de Especialidades:
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.NombreCurso, new { style = "width:200px;", MaxLength = "50", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    Estado del Curso
                                </td>
                                <td align="left" valign="middle">
                                    @Html.EditorFor(c => c.EstadoCurso)
                                        <input type="submit" value="Cambiar Estado Curso" class="btnIngresar" />
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    Modalidad:
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.NombreModalidad, new { style = "width:200px;", MaxLength = "50", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    @Html.LabelFor(c=> c.CantidadClases)
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.CantidadClases, new { style = "width:50px;", MaxLength = "4", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    @Html.LabelFor(c=> c.CantidadExamenes)
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.CantidadExamenes, new { style = "width:50px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    @Html.LabelFor(c=> c.PromedioRequerido)
                                </td>
                                <td>
                                    @Html.TextBoxFor(c => c.PromedioRequerido, new { style = "width:50px;", MaxLength = "4", disabled = "disabled" })
                                    @Html.ValidationMessageFor(c => c.PromedioRequerido, "*")
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                       @Html.LabelFor(c=> c.CargaHoraria)
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.CargaHoraria, new { style = "width:50px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    @Html.LabelFor(c=> c.Cupo)
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.Cupo, new { style = "width:50px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    @Html.LabelFor(c=> c.Presentismo)
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.Presentismo, new { style = "width:50px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Fecha Inicio:
                                </td>
                                <td>
                                    @Html.TextBoxFor(c => c.Fecha_Inicio, new { style = "width:72px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Fecha Fin:
                                </td>
                                <td>
                                    @Html.TextBoxFor(c => c.Fecha_Fin, new { style = "width:72px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                   @Html.LabelFor(c=> c.Presupuesto)
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.Presupuesto, new { style = "width:50px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    Programa:
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.NombrePrograma, new { style = "width:200px;", MaxLength = "3", disabled = "disabled" })
                                </td>
                            </tr>                            
                            <tr>
                                <td align="left">
                                    Número de Resolución:
                                </td>
                                <td align="left" valign="middle">
                                    @Html.TextBoxFor(c => c.Nro_Resolucion, new { style = "width:250px;", MaxLength = "64", disabled = "disabled" })
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    
                    <fieldset style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; width: 700px;">
                        <legend style="color: #FF9900">Módulos del Curso</legend>
                        <table>
                            <tr>
                                <td>@Html.Partial("_GrupoLista", Model)
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <fieldset style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; width: 700px;">
                        <legend style="color: #FF9900">Alumnos Inscriptos al Curso</legend>
                        <table>
                            <tr>
                                <td>@Html.Partial("_AlumnosLista", Model)
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <br />
                    <table style="width: 700px;">
                        <tr>
                            <td align="right">
                                @Html.ActionLink("Volver al Listado de Instituciones", "Index", "Instituciones", null, new { @class = "btnIngresar" })
                                @Html.ActionLink("Volver", "Ver", "Instituciones", new { INST_ID = Model.IdInstitucion }, new { @class = "btnIngresar" })
                            </td>
                        </tr>
                    </table>
                }
            </td>
        </tr>
    </table>
</div>
